python fastest way to write to file

visit shbcf.ru